using System;
namespace PersonalAccoutingProgram.Data
{
    partial class ExpenseDataClassesDataContext
    {
        public static void UpdateExpenses(int expenseID, int categoryIntID,
          decimal amountValue, DateTime date)
        {
            ExpenseDataClassesDataContext expensesDC =
                   new ExpenseDataClassesDataContext();
            expensesDC.UpdateExpense(expenseID, categoryIntID,
                                            amountValue, date);
        }

        public static void DeleteExpenses(int expensesID)
        {
            ExpenseDataClassesDataContext expensesDC =
            new ExpenseDataClassesDataContext();
            expensesDC.DeleteExpense(expensesID);
        }

        public static void AddNewExpenses(decimal amount, int categoryID,
        int userIntID, DateTime date)
        {
            ExpenseDataClassesDataContext expensesDC =
                new ExpenseDataClassesDataContext();
            expensesDC.AddNewExpense(userIntID, categoryID, amount, date);
        }
    }
}
